namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class PageGroupAccessMap : ClassMap<PageGroupAccessDataModel>
    {
        #region Constructors and Destructors

        public PageGroupAccessMap()
        {
            this.Table("PageGroupAccess");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.NavId)
                .KeyProperty(x => x.RoleName)
                .KeyProperty(x => x.ApplicationName);

            // References(x => x.Role).Column("Rolename");
            // References(x => x.Role).Column("ApplicationName");
        }

        #endregion
    }
}